package com.cheng.example.book.advise151.chap5.client73;

import java.util.Comparator;

class PositionComparator implements Comparator<Employee> {
    @Override
    public int compare(Employee o1, Employee o2) {
        // 按照职位降序排列
        return o2.getPosition().compareTo(o1.getPosition());
    }
}